part of '../repository.dart';

class _LightThemePrimaryColorDto extends Equatable {
  const _LightThemePrimaryColorDto._internal({
    required this.colorValue,
  });

  final int colorValue;

  @override
  List<Object?> get props {
    return [
      colorValue,
    ];
  }

  factory _LightThemePrimaryColorDto.fromColorValue(int colorValue) {
    return _LightThemePrimaryColorDto._internal(
      colorValue: colorValue,
    );
  }

  factory _LightThemePrimaryColorDto.fromEntity(LightThemePrimaryColor primaryColor) {
    return _LightThemePrimaryColorDto._internal(
      colorValue: primaryColor.colorValue,
    );
  }

  int toColorValue() {
    return colorValue;
  }

  LightThemePrimaryColor toEntity() {
    return LightThemePrimaryColor(colorValue);
  }
}
